package cn.wolfcode.gitflow.web.controller;

import cn.wolfcode.gitflow.gitflowdemo.domain.User;
import cn.wolfcode.gitflow.gitflowdemo.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    private IUserService userService;

    @RequestMapping("/get")
    private User get(Long id){
        return userService.get(id);
    }
}
